<?php

namespace app\admin\validate\hotel;

use think\Validate;

class HotelRoomType extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'room_type_name' => 'require|unique:HotelRoomType',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['room_type_name'],
        'edit' => [],
    ];

    public function __construct(array $rules = [], $message = [], $field = [])
    {
        $this->field = [
            'room_type_name' => __('Room_type_name'),
        ];
        parent::__construct($rules, $message, $field);
    }
}
